﻿<%@page import="cn.jdy.common.constant.GlobalConstant"%>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="jdy" uri="http://www.qwe.com.cn/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>康养旅居网</title>
          <jsp:include page="../common/common.jsp"/>
 <style type="text/css">
.myavatar {
	height: 42.5vh;
	background: white;
	border-bottom: 1px solid #ddd;
	padding: 1rem;
}

.myavatar .my2 {
	margin: 1.2rem 1rem 0 1rem;
	text-align: center;
	border-top: 1px solid #ddd;
	padding-top: 2vh;
}

.myavatar .my3 {
	padding-top: 1.5vh;
}
</style>
</head>
<body>
   <div class="main">
        <div class="myavatar">
            <div class="my1">
                <div>
                    <div class="avatar">
                        <img src="${user.headImg}" alt="">
                    </div>
                    <div class="name">
                        <span class="color">${member.mobile} </span> <br>
                        <p>
                        <c:if test="${user.userLevel eq '0' }">运营商</c:if>
                        <c:if test="${user.userLevel eq '1'}">超级会员</c:if>
                        <c:if test="${user.userLevel eq '2'}">普通会员</c:if>
                         &nbsp; 粉丝数: <span class="color">${member.fans==null?0:member.fans}</span></p>
                    </div>
                </div>
                <i class="iconfont icon-account" onclick="opensez(${member.money})"></i>
            </div>
            <div class="my2">
                <p>昨日预期收益</p>
                <span>${zjjf==null?0.0:zjjf}</span>
            </div>
            <div class="my3">
                <div class="left">
                    <p>总收益</p>
                    <span>${member.score}</span>
                </div>
                <div class="right">
                    <p>累计奖励</p>
                    <span>${lej==null?0.0:lej}</span>
                </div>
            </div>
        </div>
        <div class="dateil cashout">
            <p>佣金：<span class="color" id="zj">${member.money}</span>元</p>
            <input type="button" value="提现"  onclick="opentix(${member.money})">
        </div>
        
        <div class="dateil orderdateil"  id="mydan">
            <h4>我的订单</h4>
          
            
        
        </div>
        
     
    </div>
    <jsp:include page="../common/footer.jsp"/>
     <script src="${path}/js/myorder.js"></script>
</body>
<script>
 
function opensez(){
	location.href="${path}/member/indexsz";
}

function opentix(my){
	
 if(my>1){
	 layer.open({
		    content: '是否提现'
		    ,btn: ['确定', '取消']
		    ,skin: 'footer'
		    ,yes: function(index){

				 $.ajax({
			           url: _path + "/member/jianjifen?",
			           type: "get",
			           async: false,
			           dataType: 'json',
			           success: function (data) {
			        	   if(data.statusCode==200){
								layer.open({ content:"提现成功，2日内到账",skin: 'msg' ,time: 2 });//2秒后自动关闭
								$("#zj").text(0)
			        	   }else{
								layer.open({ content:data.info,skin: 'msg' ,time: 2 });//2秒后自动关闭

			        	   }
			           }
			     });
		    	
		    }
		  });
 }else{
		layer.open({ content:"金额不足无法提现",skin: 'msg' ,time: 2 });//2秒后自动关闭

 }
	  
}
</script>
</html>

